From dc15ca5d202d6d10f6be45f388759a902723de6c Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 8 Nov 2016 07:07:49 -0800 Subject: [PATCH] Don't use travis-cargo to upload docs --- .travis.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index be844a9c8..2bbcbe98a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -98,7 +98,6 @@ matrix: - rust: stable before_script: - - pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH - curl https://static.rust-lang.org/rustup.sh | sh -s -- --add-target=$TARGET --disable-sudo -y --prefix=`rustc --print sysroot` - if [ ! -z "$ALT" ]; then @@ -111,8 +110,13 @@ script: else src/ci/docker/run.sh $IMAGE $TARGET; fi -after_success: - - travis-cargo --only nightly doc-upload +after_success: | + [ $TRAVIS_BRANCH = master ] && + [ $TRAVIS_PULL_REQUEST = false ] && + [ $(uname -s) = Linux ] && + pip install ghp-import --user $USER && + $HOME/.local/bin/ghp-import -n target/doc && + git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages env: global: -- 2.30.2